<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画图</title>
    <style>
        .box1 {
            width: 240px;
            height: 513px;
            margin: 0 auto;
            background-image: url('./img/sprite animation.png');
            animation: run  1s steps(8) infinite;
        }
        @keyframes run {
            form {
                background-position: 0 0;
            }
            to {
                background-position: -1917px 0;
            }
        }
    </style>
</head>
<body>
    <div class="box1"></div>
</body>
</html>